package com.baizhi.jishi.controller;

import com.baizhi.jishi.entity.User;
import com.baizhi.jishi.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

@Controller
@RequestMapping("/user")
public class UserController {
    @Autowired
    private UserService userService;
    @RequestMapping("/loginUser")
    public String loginUser(String username, String password, String code, HttpSession session){
        return userService.login(username, password, code, session);
    }
}
